package com.ruoyi.hospital.domain;

import com.ruoyi.common.domain.hospital.Disease;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.NoArgsConstructor;

/**
 * 科室-疾病关联对象 department_disease
 */
@Data // 修改：使用 Lombok 简化 Getter/Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DepartmentDisease extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id; // 修改：主键命名规范化
    private String description;
    /** 科室ID */
    private Long departmentId; // 修改：字段命名驼峰化

    /** 疾病ID */
    private Long diseaseId; // 修改：字段命名驼峰化

    /** 删除状态 */
    private Integer del; // 对应数据库 del 字段

    /** 关联部门表 */
    private Department department;

    /** 关联疾病表 */
    private Disease disease;

}
